<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class StoreBargain extends Model
{
    use HasFactory;
    protected $table = 'store_bargain';
    protected $guarded = [];
    public function StoreProduct()
    {
        return $this->belongsTo(StoreProduct::class,'product_id','id');
    }
    protected function serializeDate(\DateTimeInterface $date)
    {
        return $date->format($this->dateFormat ?: 'y-m-d H:i:s');
    }
}
